
import { Button, Input, Space } from 'antd';
import { PlusCircleOutlined } from '@ant-design/icons';
const TitleSearch = (props) => {

    const onOk = () => {
        if (props.onOk) {
            props.onOk()
        }
    }


    return (
        <>
            <div style={{ marginBottom: 30, borderBottom: '1px solid #dbdbdb', fontSize: 28, paddingBottom: 30 }}>
                {props?.title}
            </div>
            <div style={{ marginBottom: 30 }}>
                <Input.Search
                   
                    placeholder="请输入搜索关键字"
                    allowClear
                    enterButton="搜索"
                    size="large"
                    style={{

                        width: 304,
                        marginRight: 15,
                    }}
                />
                <Button onClick={onOk} type="primary" icon={<PlusCircleOutlined />} size='large'>
                    添加
                </Button>
            </div>
        </>
    )
}

export default TitleSearch